﻿@page "/AnnouncementPage"
@using BBCore.Core.Models.Admins;
@using BootstrapBlazor.Components;
@using BBCore.Server.Components.Pages.Admins
@* @attribute [Authorize(Policy = "Admin")] *@
@* @attribute [Authorize(Roles = BBCore_Constant.adminName)] *@
@attribute [TabItemOption(Text = "公告栏管理", Icon = "fa-fw fa-solid fa-desktop")]
<AdminTable TItem="Announcement" OnSaveAsync="OnSaveAsync">
    <TableColumns>
        <TableColumn @bind-Field="@context.Title" Searchable="true"></TableColumn>
        <TableColumn @bind-Field="@context.Content" Searchable="true"></TableColumn>
        <TableColumn @bind-Field="@context.PublishTime"></TableColumn>
    </TableColumns>
</AdminTable>


